package com.dzjcloud.dzj.upms.biz;

import cn.dev33.satoken.SaManager;
import cn.hutool.extra.spring.SpringUtil;
import com.dzjcloud.dzj.common.fegin.annotation.EnableDzjFegin;
import com.dzjcloud.dzj.common.minio.service.MinioTemplate;
import com.dzjcloud.dzj.common.redis.annotation.EnableDzjRedis;
import com.dzjcloud.dzj.common.swagger.annotation.EnableDzjSwagger2;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * <h3>dzj-cloud</h3>
 * <p>基础平台</p>
 *
 * @author : DongZeJian
 * @date : 2021-04-30 15:03
 **/
@EnableDiscoveryClient
@SpringBootApplication
@Slf4j
@EnableDzjFegin
@MapperScan("com.dzjcloud.dzj.upms.biz.mapper")
@EnableDzjRedis
@EnableDzjSwagger2
@RefreshScope//开启热加载
@Import({cn.hutool.extra.spring.SpringUtil.class})
public class DzjAdminApplication {

    public static void main(String[] args) {
        log.info("--------------------------------基础平台系统开始启动----------------------------------------");
        SpringApplication.run(DzjAdminApplication.class, args);
        log.info("--------------------------------基础平台系统启动完成----------------------------------------");
        log.info("启动成功：sa-token配置如下：{}", SaManager.getConfig());
    }
}
